#ifndef PROGRESSDIALOG_H
#define PROGRESSDIALOG_H

#include <QDialog>
#include <QTextDocument>
#include <QStandardItemModel>

namespace Ui {
class ProgressDialog;
}

class ProgressDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit ProgressDialog(const QString title, QWidget *parent = 0);
    ~ProgressDialog();
    void setValue(int value, QString actionText, QString logText);
    int value();

private slots:
    void on_progressBar_valueChanged(int value);

private:
    Ui::ProgressDialog *ui;
    QStandardItemModel *model;

signals:
    void backstep(int);
    void complit();
    void abort();
};

#endif // PROGRESSDIALOG_H
